package com.lgy.springboot_example.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;

@Data
@ApiModel("管理员")
public class Administrator {
    @Id
    @ApiModelProperty("主键自增")
    private Integer id;
    @ApiModelProperty("管理员名称")
    private String userName;
    @ApiModelProperty("对应角色Id")
    private Integer roleId;
}
